<?php
namespace Home\Model;
use Think\Model;

class MemberPublicModel extends Model {
	public function getMemberPublic($id){
		$MemberPublic_list=$this -> where('uid='.$id) -> select();
		return $MemberPublic_list;
	}
	public function delete_pm($public_id){
	    $result=$this->where("public_id='$public_id'")->delete();
	    return $result;
	}
	public function edit($id,$data){
	    $result=$this->where("id='$id'")->save($data);
	    return $result;
	}
}
